﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Workflow.IDAO;
using Workflow.IService;
using Workflow.Model;

namespace Workflow.Service
{
	public class GroupService :IGroupService
	{
		public IGroupDao GroupDao { get; set; }

		public IList<Group> GetAllGroups()
		{
			return GroupDao.LoadAll().ToList();
		}
		public Group GetGroup(int id)
		{
			return GroupDao.Get(id);
		}
	}
}
